#ifndef __SGL_BATTERY_H__
#define __SGL_BATTERY_H__

#include "../core/sgl_core.h"
#include "../sgl.h"
#include "../draw/sgl_draw_rect.h"
#include "../draw/sgl_draw_circle.h"


typedef struct sgl_battery {
    sgl_obj_t   obj;
    sgl_color_t empty;
    uint8_t     quantity;
    uint8_t     border_w;

}sgl_battery_t;


int sgl_battery_init(sgl_battery_t *battery, sgl_obj_t* parent, uint8_t quantity);
sgl_obj_t* sgl_battery_create(sgl_obj_t* parent, uint8_t quantity);
void sgl_battery_set_quantity(sgl_obj_t* obj, uint8_t quantity);
void sgl_battery_set_empty_color(sgl_obj_t* obj, sgl_color_t color);
void sgl_battery_set_border_weight(sgl_obj_t* obj, uint8_t weight);
void sgl_battery_draw(sgl_obj_t* obj);

#endif //__SGL_BATTERY_H__
